package com.atguigu.gulimall.seckill;

import com.atguigu.gmall.common.exception.EnableAutoExceptionHandle;
import com.atguigu.gmall.common.interceptor.annotation.EnableUserAuthFeignInterceptor;
import com.atguigu.gulimall.util.annotation.EnableMallRabbit;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;

@EnableFeignClients(basePackages = "com.atguigu.gulimall.feign.order")
@EnableScheduling//开启定时调度
@EnableUserAuthFeignInterceptor
@EnableMallRabbit
@EnableAutoExceptionHandle
@MapperScan(basePackages = "com.atguigu.gulimall.seckill.mapper")
@SpringCloudApplication
public class SeckillMainApplication {
    public static void main(String[] args) {
        SpringApplication.run(SeckillMainApplication.class, args);
    }
}
